#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);

  if (prev_room_no == 5) {
position(ego,81,156);
}
if (prev_room_no == 8) {
position(ego,34,102);
}
  draw(ego);
  show.pic();
}

if (v3 == 10) {
  if (said("talk","vijay")) {
    print("Vijay: I'm tellin ya man ,,,,aa I neeed. ta get,. 4$ dollars or elssseee,,.");
  }
}
if (v3 == 14) {
  if (said("talk","vijay")) {
    print("Vijay: I  sayee,,, ya can.. can go ,, now.");
  }
}
if (v3 == 4) {
  if (said("talk","vijay")) {
    print("Vijay: I'm going down man, it's over I'm broke. OH just leave me alone");
  }
}
if (v3 == 10) {
  if (said("look","vijay")) {
    print("ooh he's on a rage, better stay away from him.");
  }
}
if (v3 == 4) {
  if (said("look","vijay")) {
    print("Oh, He's drinking wildly");
  }
}
if (said("open","door")) {
  print("Which one? North or South?.");
}
if (said("open","north","door")) {
  if (posn(o0,27,98,42,101)) {
     new.room(8);
  }
}
if (said("open","south","door")) {
  if (posn(o0,71,165,92,167)) {
     new.room(5);
  }
}
  if (said("look")) {
print("You are in the EAST INDIA CONSORTIUM.");
print("You see Vijay drinking in frustration.");
}
if (ego_edge_code == left_edge) {     // ego touching left edge of screen
  new.room(7);
}
if (has("spell book")) {
  if (said("open","book")) {
    print("The spells are as follows-.");
    print("DHOOA: Makes everyone go blind, except you.");
    print("KALI: You can open any door with this one.");
    print("PINKU: You will know the answer to any questions if you use this.");
    print("That's all.");
  }
}
if (has("spell book")) {
  if (said("dhooa")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("Kali")) {
    print("No need of using this now.");
  }
}
if (has("spell book")) {
  if (said("pinku")) {
    print("No need of using this now.");
  }
}

if (v3 == 10) {

  load.view(11);
  set.view(o2,11);
  position(o2,96,134);
  animate.obj(o2);
  start.cycling(o2);
  draw(o2);
}
else {
   load.view(7);
   set.view(o2,7);
   position(o2,102,134);
   animate.obj(o2);
   start.cycling(o2);
   draw(o2);
}
return();